package cn.tuning.entity;

import java.util.Date;

/**
 * @author laisd
 * @date 2021-08-02 22:24
 */

public class OrderInfo {
    private String id;
    private int commission;
    private int orderStatus;
    private String receivedAddress;
    private int weight;
    private String customerId; //顾客邮箱
    private String riderId;  //骑手邮箱
    private String pickUpCode;
    private Date deliveryTime;
    private Date receivedTime;
    private Date finishedTime;
    private Date createTime;

    public OrderInfo() {
    }

    public OrderInfo(String id, int commission, int orderStatus, String receivedAddress, int weight, String customerId, String riderId, String pickUpCode, Date deliveryTime, Date receivedTime, Date finishedTime, Date createTime) {
        this.id = id;
        this.commission = commission;
        this.orderStatus = orderStatus;
        this.receivedAddress = receivedAddress;
        this.weight = weight;
        this.customerId = customerId;
        this.riderId = riderId;
        this.pickUpCode = pickUpCode;
        this.deliveryTime = deliveryTime;
        this.receivedTime = receivedTime;
        this.finishedTime = finishedTime;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getCommission() {
        return commission;
    }

    public void setCommission(int commission) {
        this.commission = commission;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getReceivedAddress() {
        return receivedAddress;
    }

    public void setReceivedAddress(String receivedAddress) {
        this.receivedAddress = receivedAddress;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getRiderId() {
        return riderId;
    }

    public void setRiderId(String riderId) {
        this.riderId = riderId;
    }

    public String getPickUpCode() {
        return pickUpCode;
    }

    public void setPickUpCode(String pickUpCode) {
        this.pickUpCode = pickUpCode;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getReceivedTime() {
        return receivedTime;
    }

    public void setReceivedTime(Date receivedTime) {
        this.receivedTime = receivedTime;
    }

    public Date getFinishedTime() {
        return finishedTime;
    }

    public void setFinishedTime(Date finishedTime) {
        this.finishedTime = finishedTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public OrderInfo(String id, int commission, String receivedAddress, String customerId, String pickUpCode, Date deliveryTime, Date createTime) {
        this.id = id;
        this.commission = commission;
        this.receivedAddress = receivedAddress;
        this.customerId = customerId;
        this.pickUpCode = pickUpCode;
        this.deliveryTime = deliveryTime;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "id='" + id + '\'' +
                ", commission=" + commission +
                ", orderStatus=" + orderStatus +
                ", receivedAddress='" + receivedAddress + '\'' +
                ", weight=" + weight +
                ", customerId='" + customerId + '\'' +
                ", riderId='" + riderId + '\'' +
                ", pickUpCode='" + pickUpCode + '\'' +
                ", deliveryTime=" + deliveryTime +
                ", receivedTime=" + receivedTime +
                ", finishedTime=" + finishedTime +
                ", createTime=" + createTime +
                '}';
    }
}
